.PHONY:lint
lint:
	golangci-lint run

.PHONY:init
init:
	go run . init

.PHONY:app_build
app_build:
	./example/cmd/sh/build.sh ${env}

.PHONY:app_run
app_run:
	bash ./bin/run.sh start foreground

.PHONY:version
version:
	go run . version

.PHONY:packr2
packr2:
	packr2 clean && packr2

.PHONY:client
client:
	go run . client -n demo -m demo

.PHONY: all
all:
	go run ./cmd/ginc/* \
		gen \
		-t example/dto/third_party \
		-p example/dto/api \
		-b example/dto/api/pb \
		-d example/dto/api/doc \
		-r example/dto/api/route \
		-c example/internal \


.PHONY: gitag
gitag:
	git add . && git commit -m "${tag}"
	git push
	git tag -a ${tag} -m "生成标签：${tag}" # 创建带标签的Tag
	git push origin ${tag}                # 推送Tag到远程



